package com.jiangxjsy.admin.service.impl;

import com.jiangxjsy.admin.mapper.AdminModelSortMapper;
import com.jiangxjsy.admin.service.AdminModelSortService;
import com.jiangxjsy.model.admin.entity.AdminModelSort;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/6 17:14
 */

@Service
public class AdminModelSortServiceImpl implements AdminModelSortService {
    @Resource
    private AdminModelSortMapper adminModelSortMapper;

    /**
     * 根据类型和用户 id 查询模型排序信息
     *
     * @param type 类型
     * @param userId 用户 id
     * @return 模型排序信息
     */
    @Override
    public AdminModelSort queryByTypeAndUserId(Integer type, Long userId) {
        return adminModelSortMapper.selectByTypeAndUserId(type, userId);
    }
}
